home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7755 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  942 b 

  1. Path: nntp.onyx.net!newsmaster
  2. From: Nik.Palmer@onyx.octacon.co.uk (Nik Palmer)
  3. Newsgroups: comp.lang.c
  4. Subject: sin function in Turbo C 3
  5. Date: Wed, 28 Feb 1996 19:34:28 GMT
  6. Organization: ONYX.net
  7. Message-ID: <4h2al3$rim@mulgave.octacon.co.uk>
  8. NNTP-Posting-Host: r03-17.onyx.net
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. Hi easy  question first,
  12. when findng the angle in trigonometry on my calc I use the sin-1
  13. function to give me the answer in degrees  a la
  14.  
  15. sin(theta)=opp/hyp
  16.  
  17. but Turbo C only has the sin function how do I get the answer in
  18. degrees(or radians)
  19. Q2
  20. when dividing doubles using the / function I would like to have the
  21. answer in the form 10/3 = 3.3333etc  like I know I lose the fraction,
  22. I can get around this using the other functions which provide me with
  23. the remiander to redivide, or multiply the number to be divided by
  24. 1000 then do some bits to get the result.
  25.  
  26. There must be a better way
  27. Thanks email me or post here 
  28.  
  29.